Password-protect a directory, but not that directory's files? [Apache]

Posted by Onion on Super User See other posts from Super User or by Onion
Published on 2010-05-28T21:04:33Z Indexed on 2010/05/28 21:12 UTC
Read the original article Hit count: 148

Filed under:
|

Hi, I was just wondering if it was possible to protect a directory with a username/password combination using .htaccess and .htpasswd files, but not protect the files within. i.e. One is able to link, say, images within that directory to friends, but browsing the directory itself would not be allowed without a username/password. Thanks to all in advance.

© Super User or respective owner

Related posts about passwords

Related posts about apache